import request from '@/utils/request'

// 查询区域列表
export function arealist(query) {
  return request({
    url: '/system/area/list',
    method: 'get',
    params: query
  })
}
// 获取区域详细信息
export function getArea(id) {
  return request({
    url: '/system/area/' + id,
    method: 'get'
  })
}
// 新增区域
export function addRegion(data) {
  return request({
    url: '/system/area',
    method: 'post',
    data: data
  })
}
// 修改区域
export function putRegion(data) {
  return request({
    url: '/system/area',
    method: 'put',
    data: data
  })
}
// 删除区域
export function delRegion(id) {
  return request({
    url: '/system/area/' + id,
    method: 'delete',
  })
}
//区域绑定员工-列表
export function listEmployees(query) {
  return request({
    url: '/system/area/listEmployees',
    method: 'post',
    params: query
  })
}
//区域绑定员工
export function boundEmployees(data) {
  return request({
    url: '/system/area/boundEmployees',
    method: 'post',
    data: data
  })
}
//区域绑定车辆-列表
export function listCars(query) {
  return request({
    url: '/system/area/listCars',
    method: 'post',
    params: query
  })
}
//区域绑定车辆
export function boundCars(data) {
  return request({
    url: '/system/area/boundCars',
    method: 'post',
    data: data
  })
}
//区域绑定员工-ids
export function listEmployeeIds(query) {
  return request({
    url: '/system/area/listEmployeeIds',
    method: 'post',
    params: query
  })
}
//区域绑定车辆-ids
export function listCarsIds(query) {
  return request({
    url: '/system/area/listCarsIds',
    method: 'post',
    params: query
  })
}
//获取车辆视频链接
export function getVideoUrl(query) {
  return request({
    url: '/system/mobile/getVideoUrl',
    method: 'get',
    params: query
  })
}
